import { ModuleWithProviders } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";

const appRoutes: Routes = [
  // {
  //     path: "maintain/ticket",
  //     loadChildren: "./ticket/ticket.module#TicketModule",
  //     data: { tag: "isoc", breadcrumb: "运维响应 / 响应处置" },
  // },
  {
    path: "formTable",
    loadChildren: "./formTable/form-table.module#FormTableModule",
  },
  {
    path: "upload",
    loadChildren: "./upload/upload.module#UploadModule",
  },
  {
    path: "",
    // pathMatch: "full",
    // redirectTo: "formTable",
    loadChildren: "./formTable/form-table.module#FormTableModule",
  },
];

export const routerModule: ModuleWithProviders =
  RouterModule.forChild(appRoutes);
